<html>

<head>

  <title>TRasterLayer32</title>

  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel="stylesheet" href="../../../../../Styles/Default.css" type="text/css">

  <meta name="Ancestor" content="TRotateLayer32">
<script type="text/javascript" src="../../../../../CodeScripts/SyntaxHighlighter/scripts/shCore.js"></script><script type="text/javascript" src="../../../../../CodeScripts/SyntaxHighlighter/scripts/shBrushDelphi.js"></script><script type="text/javascript" src="../../../../../CodeScripts/SyntaxHighlighter/scripts/shBrushCpp.js"></script><script type="text/javascript" src="../../../../../CodeScripts/SyntaxHighlighter/scripts/shBrushCSharp.js"></script><link rel="stylesheet" type="text/css" href="../../../../../Styles/default.css"/><link rel="stylesheet" type="text/css" href="../../../../../Menu/menu.css"/><link rel="stylesheet" type="text/css" href="../../../../../CodeScripts/SyntaxHighlighter/styles/shCoreDefault.css"/><link rel="stylesheet" type="text/css" href="../../../../../CodeScripts/SyntaxHighlighter/styles/shThemeDefault.css"/><meta name="viewport" content="width=device-width, initial-scale=1.0"><script type="text/javascript" src="../../../../../Menu/menu.js"></script><script type="text/javascript" src="../../../../../CodeScripts/bootstrap.js"></script>
</head>

<body bgcolor="#FFFFFF">
  <div class="menu" id="menu"><a class="ancestor" href="../../../../_Body.htm">Index</a><a class="ancestor" href="../../_Body.htm">Img32.Layers</a><span class="active">TRasterLayer32</span>
  </div><br><br>

  <h1>TRasterLayer32</h1>
  <h2>Ancestors</h2>
  <div class="Hierarchy">&nbsp;&nbsp;&nbsp;|
  </div>
  <div class="Hierarchy"><a href="../TLayer32/_Body.htm">TLayer32</a>
  </div>
  <div class="Hierarchy">&nbsp;&nbsp;&nbsp;|
  </div>
  <div class="Hierarchy"><a href="../THitTestLayer32/_Body.htm">THitTestLayer32</a>
  </div>
  <div class="Hierarchy">&nbsp;&nbsp;&nbsp;|
  </div>
  <div class="Hierarchy"><a href="../TRotateLayer32/_Body.htm">TRotateLayer32</a>
  </div><br><br>

  <p><span class="monobold">TRasterLayer32</span>, as its name implies, has been designed to display raster images. However, rather than assigning images directly to the <a href="../TLayer32/Properties/Image.htm"><b>Image</b></a> property, the <a href="./Properties/MasterImage.htm"><b>MasterImage</b></a> property should be assigned instead. This way, whenever the layer is resized or rotated, the layer's <span class="monobold">Image</span> can be update automatically using a <span class="monobold">MasterImage</span> transformation. This accommodates any number of layer scalings and rotations without without degrading the displayed image (and without altering <span class="monobold">MasterImage</span>).<br><br> Note: It's important that <span class="monobold">MasterImage</span> has any transparent pixels around it cropped to prevent the display image offsetting when starting a layer rotation. </p>
<br>

  <div><img src="../../../../../Images/raster.png">
  </div>
  <h2 id="Auto-Reference">Reference</h2>
  <p>
    <table class="autoTbl">
      <tr>
        <th>Methods</th>
        <th style="width: 100%;">Properties</th>
      </tr>
      <tr>
        <td colspan="2" class="ancestor">In TRasterLayer32:
        </td>
      </tr>
      <tr>
        <td><a href="Methods/Rotate.htm">Rotate</a>
        </td>
        <td><a href="Properties/Angle.htm">Angle</a>
        </td>
      </tr>
      <tr>
        <td><a href="Methods/UpdateHitTestMaskOpaque.htm">UpdateHitTestMaskOpaque</a>
        </td>
        <td><a href="Properties/AutoSetHitTestMask.htm">AutoSetHitTestMask</a>
        </td>
      </tr>
      <tr>
        <td><a href="Methods/UpdateHitTestMaskTransparent.htm">UpdateHitTestMaskTransparent</a>
        </td>
        <td><a href="Properties/MasterImage.htm">MasterImage</a>
        </td>
      </tr>
      <tr>
        <td>
        </td>
        <td><a href="Properties/Matrix.htm">Matrix</a>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="ancestor">In TRotateLayer32:
        </td>
      </tr>
      <tr>
        <td><a href="../TRotateLayer32/Methods/ResetAngle.htm">ResetAngle</a>
        </td>
        <td><a href="../TRotateLayer32/Properties/AutoPivot.htm">AutoPivot</a>
        </td>
      </tr>
      <tr>
        <td>
        </td>
        <td><a href="../TRotateLayer32/Properties/PivotPt.htm">PivotPt</a>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="ancestor">In THitTestLayer32:
        </td>
      </tr>
      <tr>
        <td><a href="../THitTestLayer32/Methods/UpdateHitTestMask.htm">UpdateHitTestMask</a>
        </td>
        <td><a href="../THitTestLayer32/Properties/HitTestEnabled.htm">HitTestEnabled</a>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="ancestor">In TLayer32:
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/AddChild.htm">AddChild</a>
        </td>
        <td><a href="../TLayer32/Properties/BlendFunc.htm">BlendFunc</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/BringForwardOne.htm">BringForwardOne</a>
        </td>
        <td><a href="../TLayer32/Properties/Child.htm">Child</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/BringToFront.htm">BringToFront</a>
        </td>
        <td><a href="../TLayer32/Properties/ChildCount.htm">ChildCount</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/ClearChildren.htm">ClearChildren</a>
        </td>
        <td><a href="../TLayer32/Properties/ClipPath.htm">ClipPath</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/Create.htm">Create</a>
        </td>
        <td><a href="../TLayer32/Properties/CursorId.htm">CursorId</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/DeleteChild.htm">DeleteChild</a>
        </td>
        <td><a href="../TLayer32/Properties/Height.htm">Height</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/Destroy.htm">Destroy</a>
        </td>
        <td><a href="../TLayer32/Properties/Image.htm">Image</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/InsertChild.htm">InsertChild</a>
        </td>
        <td><a href="../TLayer32/Properties/Index.htm">Index</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/Invalidate.htm">Invalidate</a>
        </td>
        <td><a href="../TLayer32/Properties/InnerBounds.htm">InnerBounds</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/MakeAbsolute.htm">MakeAbsolute</a>
        </td>
        <td><a href="../TLayer32/Properties/InnerRect.htm">InnerRect</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/MakeRelative.htm">MakeRelative</a>
        </td>
        <td><a href="../TLayer32/Properties/Left.htm">Left</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/Offset.htm">Offset</a>
        </td>
        <td><a href="../TLayer32/Properties/Location.htm">Location</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/PositionAt.htm">PositionAt</a>
        </td>
        <td><a href="../TLayer32/Properties/MidPoint.htm">MidPoint</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/PositionCenteredAt.htm">PositionCenteredAt</a>
        </td>
        <td><a href="../TLayer32/Properties/Name.htm">Name</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/SendBackOne.htm">SendBackOne</a>
        </td>
        <td><a href="../TLayer32/Properties/Opacity.htm">Opacity</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/SendToBack.htm">SendToBack</a>
        </td>
        <td><a href="../TLayer32/Properties/OuterBounds.htm">OuterBounds</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/SetInnerBounds.htm">SetInnerBounds</a>
        </td>
        <td><a href="../TLayer32/Properties/Parent.htm">Parent</a>
        </td>
      </tr>
      <tr>
        <td><a href="../TLayer32/Methods/SetSize.htm">SetSize</a>
        </td>
        <td><a href="../TLayer32/Properties/Root.htm">Root</a>
        </td>
      </tr>
      <tr>
        <td>
        </td>
        <td><a href="../TLayer32/Properties/RootOwner.htm">RootOwner</a>
        </td>
      </tr>
      <tr>
        <td>
        </td>
        <td><a href="../TLayer32/Properties/Top.htm">Top</a>
        </td>
      </tr>
      <tr>
        <td>
        </td>
        <td><a href="../TLayer32/Properties/UserData.htm">UserData</a>
        </td>
      </tr>
      <tr>
        <td>
        </td>
        <td><a href="../TLayer32/Properties/Visible.htm">Visible</a>
        </td>
      </tr>
      <tr>
        <td>
        </td>
        <td><a href="../TLayer32/Properties/Width.htm">Width</a>
        </td>
      </tr>
    </table></p>
  <p class="Copyright" id="auto"> <br><br> Copyright &copy;2010-2023 Angus Johnson&nbsp; - &nbsp;Image32 4.2&nbsp; - &nbsp;Help file built on 26 Mar 2023 <br><br> </p>

</body>

</html>